﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernateDown2Earth.Core.Entities;
using FluentNHibernate.Mapping;

namespace NHibernateDown2Earth.Core.Mapping
{
	public class ProductMap: ClassMap<Product>
	{
		public ProductMap()
		{
			Id(x => x.Id);
			Map(x=>x.Name);
			Map(x=>x.Cost);
			Map(x => x.QtyInStock);
			References<Category>(x => x.ProductType)
				.Column("Category_id");

		}
	}
}
